package com.kuun.mongo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.kuun.domain.Order;

public interface OrderRepository extends MongoRepository<Order, Integer> {
	
	public Order findByOrderId(Integer orderId) ;
	
	@Query(value="find({'customerName': ?0})")
	public List<Order> getOrderByCustomerName(String customerName) ;
	
}
